import type BaseResponse from "@/api/types/BaseResponse";
import {request} from "@/utils/request";
import type HolidayBalanceResponse from "@/api/types/HolidayBalanceResponse";

// 根据用户ID获取假期余额
export async function getHolidayBalancesByUserId(userId: string) {
    return await request<BaseResponse<HolidayBalanceResponse[]>>({
        url: "/kaoqin/balance",
        method: "POST",
        data: {userid: userId},
        isAuthenticated: true
    })
}
